package com.zdb.demo.design.pattern.behavioral.visitor.demo1;

public class SingleVisitor implements Visitor {
    @Override public void visit(Beijing beijing) {
        System.out.println("hello beijing");
    }

    @Override public void visit(Shanghai shanghai) {
        System.out.println("hello shanghai");
    }

    @Override public void visit(Shenzhen shenzhen) {
        System.out.println("hello shenzhen");
    }
}
